Initializes a new instance of the Brush class.
Namespace: MindFusion.Drawing
File: Brush.js
JavaScript Copy Code |
---|
function Brush (color) |
Type: Color, string
The color of this brush.
The following code creates a new Brush and assigns it as a background of a ToolTip. The Brush is semi-transparent gray:
JavaScript Copy Code |
---|
ToolTip.brush = new Drawing.Brush(Drawing.Color.fromArgb(125, 100, 100, 100)); |